<div class="header">
        <div class="cont_page">
            <div class="content_header">
                <div class="cont_logo left"> <a href="#"><img src="{$image_dir}eden_rencontre.png" alt="Eden rencontre" border="0" title="Eden rencontre" /></a></div>
                <div class="right">
                    {if $smarty.session.UserId == ''} 
                     <div class="login_top">        
                        <form name="frmLogin" method="post" action="midlogin.php" onsubmit="javascript: return newvalidateLogin(this);">
                            <div class="cont_ch left">
                                <input type="text" maxlength="25" name="txtusername"  placeholder="Pseudo ou mail" class="champ" />
                            </div>
                            <div class="cont_ch left">
                                <input type="password" name="txtpassword" placeholder="Mot de passe" class="champ" />
                            </div>
                            <input type="submit" name="Submit" class="btn opc" value="Ok" />
                        </form>
                        <a href="#">* <span class="opc">Mot de passe oublie ?</span></a>
                    </div>  
                   {else}
                        <div class="welcom_blk"> <a class="name">Bienvenue Mickael</a> <a class="logout opc" href="{$docroot}logout.php">Se deconnecter</a> </div> 
                   {/if}
                </div>
                <div class="clr"></div>
            </div>
        </div>
</div>